package org.common.service;


import java.util.List;
import java.util.Set;

public interface RedisService {
    void execute(RedisCallback callback);

    void close();

    void set(String key, String value);

    void setWithExpire(String key, String value,long seconds);

    String get(String key);

    void sadd(String key, String... members);

    Set<String> smembers(String key);

    void del(String... keys);

    void execTransaction(List<String> keys, List<String> args);

    boolean releaseLock(String key, String value);

}
